home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11.lha / libX11 / filling.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-22  |  2.2 KB  |  92 lines

  1. /* Copyright (c) 1996 by Terje Pedersen.  All Rights Reserved   */
  2. /*                                                              */
  3. /* By using this code you will agree to these terms:            */
  4. /*                                                              */
  5. /* 1. You may not use this code for profit in any way or form   */
  6. /*    unless an agreement with the author has been reached.     */
  7. /*                                                              */
  8. /* 2. The author is not responsible for any damages caused by   */
  9. /*    the use of this code.                                     */
  10. /*                                                              */
  11. /* 3. All modifications are to be released to the public.       */
  12. /*                                                              */
  13. /* Thats it! Have fun!                                          */
  14. /* TP                                                           */
  15. /*                                                              */
  16.  
  17. /***
  18.    NAME
  19.      filling
  20.    PURPOSE
  21.      
  22.    NOTES
  23.      
  24.    HISTORY
  25.      Terje Pedersen - Jan 28, 1995: Created.
  26. ***/
  27.  
  28. #include <intuition/intuition.h>
  29. #include <graphics/gfx.h>
  30. #include <graphics/gfxbase.h>
  31. #include <proto/intuition.h>
  32. #include <proto/graphics.h>
  33.  
  34. #include <graphics/gfx.h>
  35. #include <graphics/gfxmacros.h>
  36.  
  37. #include <dos.h>
  38. #include <stdlib.h>
  39. #include <string.h>
  40. #include <stdio.h>
  41.  
  42. #include "libX11.h"
  43.  
  44. #define XLIB_ILLEGAL_ACCESS 1
  45.  
  46. #include <X11/X.h>
  47. #include <X11/Xlib.h>
  48. #include "amigax_proto.h"
  49. #include "amiga_x.h"
  50.  
  51. extern UWORD *XOrigPattern;
  52. extern byte XOrigPatternSize;
  53. extern int Xdash;
  54.  
  55. XSetFillStyle(display, gc, fill_style)
  56.      Display *display;
  57.      GC gc;
  58.      int fill_style;
  59. {
  60. #ifdef DEBUGXEMUL_ENTRY
  61.   printf("XSetFillStyle %d\n",fill_style);
  62. #endif
  63.   gc->values.fill_style=(gc->values.fill_style&0xff00)|fill_style;
  64.   prevgc=-1;
  65.   return(0);
  66. }
  67.  
  68.  
  69. XSetDashes(display, gc, dash_offset, dash_list, n)
  70.      Display *display;
  71.      GC gc;
  72.      int dash_offset;
  73.      char dash_list[];
  74.      int n;
  75. {
  76. #ifdef DEBUGXEMUL_ENTRY
  77.   printf("XSetDashes\n");
  78. #endif
  79. /*
  80.   Xdash=dash_list;
  81.   prevgc=-1;
  82. */
  83.   return(0);
  84. }
  85.  
  86. XSetFillRule(display, gc, fill_rule)
  87.      Display *display;
  88.      GC gc;
  89.      int fill_rule;
  90. {
  91. }
  92.